Skip to content

Commit be50005

Browse files
authored
Fixed some example issues (#14831)
* Add ProviderHub in azure-powershell-modules.md * Fixed some issues in providerhub examples
1 parent d6ff506 commit be50005

14 files changed

+23
-23
lines changed

src/ProviderHub/help/Get-AzProviderHubCustomRollout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ Gets the custom rollout details.
3838
### Example 1: Get a custom rollout by rollout name.
3939
```powershell
4040
PS C:\> Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1"
41-
```
4241
4342
Name Type
4443
---- ----
4544
customRollout1 Microsoft.ProviderHub/providerRegistrations/customRollouts
45+
```
4646

4747
Get a custom rollout by rollout name.
4848

src/ProviderHub/help/Get-AzProviderHubDefaultRollout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ Gets the default rollout details.
3838
### Example 1: List all default rollouts under the resource provider.
3939
```powershell
4040
PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso"
41-
```
4241
4342
Name Type
4443
---- ----
4544
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
4645
defaultRollout2021w11 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
46+
```
4747

4848
List all default rollouts under the resource provider.
4949

5050
### Example 2: Get a specific rollout by name.
5151
```powershell
5252
PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10"
53-
```
5453
5554
Name Type
5655
---- ----
5756
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
57+
```
5858

5959
Get a specific rollout by name.
6060

src/ProviderHub/help/Get-AzProviderHubNotificationRegistration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ Gets the notification registration details.
3838
### Example 1: List all the notification registration by ProviderNamespace.
3939
```powershell
4040
PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso"
41-
```
4241
4342
Name
4443
----
4544
notificationRegistrationTest1
4645
notificationRegistrationTest2
46+
```
4747

4848
List all the notification registration in the provider namespace.
4949

5050
### Example 1: Get the notification registration by name.
5151
```powershell
5252
PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest"
53-
```
5453
5554
Name
5655
----
5756
notificationRegistrationTest
57+
```
5858

5959
Get the notification registration by name.
6060

src/ProviderHub/help/Get-AzProviderHubProviderRegistration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ Gets the provider registration details.
3838
### Example 1: Get the provider registration.
3939
```powershell
4040
PS C:\> Get-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso"
41-
```
4241
4342
Name Type
4443
---- ----
4544
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
45+
```
4646

4747
Get the provider registration.
4848

src/ProviderHub/help/Get-AzProviderHubResourceTypeRegistration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ Gets a resource type details in the given subscription and provider.
3838
### Example 1: List all resource types under the resource provider namespace.
3939
```powershell
4040
PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso"
41-
```
4241
4342
Name Type
4443
---- ----
4544
testResourceType1 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
4645
testResourceType2 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
46+
```
4747

4848
List all resource types under the resource provider namespace.
4949

5050
### Example 2: Gets a resource type by name.
5151
```powershell
5252
PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1"
53-
```
5453
5554
Name Type
5655
---- ----
5756
testResourceType1 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
57+
```
5858

5959
Gets a resource type by name.
6060

src/ProviderHub/help/Get-AzProviderHubSku.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ Gets the sku details for the given resource type and sku name.
5757
### Example 1: Get the resource SKU definition.
5858
```powershell
5959
PS C:\> Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default"
60-
```
6160
6261
Name Type
6362
---- ----
6463
testResourceType Microsoft.ProviderHub/providerRegistrations/skus
64+
```
6565

6666
Get the resource SKU definition.
6767

src/ProviderHub/help/Invoke-AzProviderHubManifestCheckin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ Checkin the manifest.
2626
### Example 1: Checkin the resource provider manifest.
2727
```powershell
2828
PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "NorthEurope" -Environment "Canary"
29-
```
3029
3130
CommitId IsCheckedIn PullRequest StatusMessage
3231
-------- ----------- ----------- -------------
3332
False Manifest is successfully merged.
33+
```
3434

3535
Checkin the resource provider manifest.
3636

3737
### Example 2: Checkin the resource provider manifest.
3838
```powershell
3939
PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "EastUS2EUAP" -Environment "Prod"
40-
```
4140
4241
CommitId IsCheckedIn PullRequest StatusMessage
4342
-------- ----------- ----------- -------------
4443
False Manifest is successfully merged.
44+
```
4545

4646
Checkin the resource provider manifest.
4747

src/ProviderHub/help/New-AzProviderHubCustomRollout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ Creates or updates the rollout details.
2929
### Example 1: Create/Update a resource provider custom rollout.
3030
```powershell
3131
PS C:\> New-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" -CanaryRegion "Eastus2EUAP"
32-
```
3332
3433
Name Type
3534
---- ----
3635
customRollout1 Microsoft.ProviderHub/providerRegistrations/customRollouts
36+
```
3737

3838
Create/Update a resource provider custom rollout.
3939

src/ProviderHub/help/New-AzProviderHubDefaultRollout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Creates or updates the rollout details.
3535
### Example 1: Create/Update a resource provider default rollout.
3636
```powershell
3737
PS C:\> New-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" -CanarySkipRegion "brazilus" -NoWait
38-
```
3938
4039
Name Type
4140
---- ----
4241
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
42+
```
4343

4444
Create/Update a resource provider default rollout.
4545

src/ProviderHub/help/New-AzProviderHubManifest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ Generates the manifest for the given provider.
3232
### Example 1: Generate the resource provider manifest.
3333
```powershell
3434
PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso"
35-
```
3635
3736
Namespace ProviderType ProviderVersion RequiredFeature
3837
--------- ------------ --------------- ---------------
3938
Microsoft.Contoso Internal, Hidden 2.0
39+
```
4040

4141
Generate the resource provider manifest.
4242

4343
### Example 2: Generate the resource provider manifest.
4444
```powershell
4545
PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso"
46-
```
4746
4847
Namespace ProviderType ProviderVersion RequiredFeature
4948
--------- ------------ --------------- ---------------
5049
Microsoft.Contoso Internal, Hidden 2.0
50+
```
5151

5252
Generate the resource provider manifest.
5353

src/ProviderHub/help/New-AzProviderHubNotificationRegistration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ Creates or updates a notification registration.
2727
### Example 1: Create/Update a notification registration.
2828
```powershell
2929
PS C:\> New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"}
30-
```
3130
3231
Name
3332
----
3433
notificationRegistrationTest
34+
```
3535

3636
Create/Update a notification registration.
3737

3838
### Example 2: Create/Update a notification registration.
3939
```powershell
4040
PS C:\> New-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest" -NotificationMode "EventHub" -MessageScope "RegisteredSubscriptions" -IncludedEvent "*/write", "Microsoft.Contoso/testResourceType/delete" -NotificationEndpoint @{Location = "", "East US"; NotificationDestination = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"}
41-
```
4241
4342
Name
4443
----
4544
notificationRegistrationTest
45+
```
4646

4747
Create/Update a notification registration.
4848

src/ProviderHub/help/New-AzProviderHubProviderRegistration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ Creates or updates the provider registration.
4141
### Example 1: Create/Update a provider registration.
4242
```powershell
4343
PS C:\> New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Internal" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "[email protected]" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"}
44-
```
4544
4645
Name Type
4746
---- ----
4847
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
48+
```
4949

5050
Create/Update a provider registration.
5151

5252
### Example 2: Create/Update a provider registration.
5353
```powershell
5454
PS C:\> New-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso" -ProviderHubMetadataProviderAuthenticationAllowedAudience "https://management.core.windows.net/" -ProviderHubMetadataProviderAuthorization @{ApplicationId = "00000000-0000-0000-0000-000000000000"; RoleDefinitionId = "00000000-0000-0000-0000-000000000000"} -Namespace "Microsoft.Contoso" -ProviderVersion "2.0" -ProviderType "Hidden" -ManagementManifestOwner "SPARTA-PlatformServiceAdministrator" -ManagementIncidentContactEmail "[email protected]" -ManagementIncidentRoutingService "Contoso Service" -ManagementIncidentRoutingTeam "Contoso Team" -ManagementServiceTreeInfo @{ComponentId = "00000000-0000-0000-0000-000000000000"; ServiceId = "00000000-0000-0000-0000-000000000000"} -Capability @{QuotaId = "CSP_2015-05-01"; Effect = "Allow"}, @{QuotaId = "CSP_MG_2017-12-01"; Effect = "Allow"}
55-
```
5655
5756
Name Type
5857
---- ----
5958
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
59+
```
6060

6161
Create/Update a provider registration.
6262

src/ProviderHub/help/New-AzProviderHubResourceTypeRegistration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ Creates or updates a resource type.
4545
### Example 1: Create/Update a resource type registration.
4646
```powershell
4747
PS C:\> New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -RoutingType "Default" -Regionality "Regional" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = "West US 2", "East US 2 EUAP"; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } -EnableAsyncOperation
48-
```
4948
5049
Name Type
5150
---- ----
5251
testResourceType Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
52+
```
5353

5454
Create/Update a resource type registration.
5555

5656
### Example 2: Create/Update a resource type registration.
5757
```powershell
5858
PS C:\> New-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -RoutingType "Default" -Regionality "Regional" -Endpoint @{ApiVersion = "2021-01-01-preview"; Location = "West US 2", "East US 2 EUAP"; RequiredFeature = "Microsoft.Contoso/SampleApp" } -SwaggerSpecification @{ApiVersion = "2021-01-01-preview"; SwaggerSpecFolderUri = "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/rpsaas/resource-manager/Microsoft.Contoso/" } -EnableAsyncOperation
59-
```
6059
6160
Name Type
6261
---- ----
6362
testResourceType Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
63+
```
6464

6565
Create/Update a resource type registration.
6666

src/ProviderHub/help/New-AzProviderHubSku.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ Creates or updates the resource type skus in the given resource type.
2626
### Example 1: Create/Update a resource SKU definition.
2727
```powershell
2828
PS C:\> New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "Employees" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"}
29-
```
3029
3130
Name Type
3231
---- ----
3332
default Microsoft.ProviderHub/providerRegistrations/skus
33+
```
3434

3535
Create/Update a resource SKU definition.
3636

3737
### Example 2: Create/Update a resource SKU definition.
3838
```powershell
3939
PS C:\> New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "Employees" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"}
40-
```
4140
4241
Name Type
4342
---- ----
4443
default Microsoft.ProviderHub/providerRegistrations/skus
44+
```
4545

4646
Create/Update a resource SKU definition.
4747

0 commit comments

Comments
 (0)