From 4e819e1528103b73a5575e43c75ec5504d11cc93 Mon Sep 17 00:00:00 2001 From: Seif Bassem <38246040+sebassem@users.noreply.github.com> Date: Mon, 9 Oct 2023 12:54:57 +0300 Subject: [PATCH] update features statuses --- .../Invoke-RegisterSubscriptionResourceProviders.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/Invoke-RegisterSubscriptionResourceProviders.ps1 b/src/scripts/Invoke-RegisterSubscriptionResourceProviders.ps1 index 1a166ef4..a1af1a42 100644 --- a/src/scripts/Invoke-RegisterSubscriptionResourceProviders.ps1 +++ b/src/scripts/Invoke-RegisterSubscriptionResourceProviders.ps1 @@ -26,7 +26,7 @@ if ($providers.Count -gt 0) { if ($providerStatus -eq 'NotRegistered') { Write-Output "`n Registering the '$provider' provider" if (Register-AzResourceProvider -ProviderNamespace $provider) { - Write-Output "`n The '$provider' has been registered successfully" + Write-Output "`n The registration for provider'$provider' has started successfully" } else { Write-Output "`n The '$provider' provider has not been registered successfully" @@ -62,10 +62,10 @@ if ($providers.Count -gt 0) { # Define variables $featureStatus = (Get-AzProviderFeature -ListAvailable | Where-Object FeatureName -eq $feature).RegistrationState # Check if the feature is registered - if ($featureStatus -eq 'NotRegistered') { + if ($featureStatus -eq 'NotRegistered' -or $featureStatus -eq 'Unregistered') { Write-Output "`n Registering the '$feature' feature" if (Register-AzProviderFeature -FeatureName $feature -ProviderNamespace $provider) { - Write-Output "`n The '$feature' has been registered successfully" + Write-Output "`n The The registration for feature '$feature' has started successfully" } else { Write-Output "`n The '$feature' feature has not been registered successfully"