Skip to content

Commit

Permalink
Fixed some example issues (#14831)
Browse files Browse the repository at this point in the history
* Add ProviderHub in azure-powershell-modules.md

* Fixed some issues in providerhub examples
  • Loading branch information
dolauli authored Apr 26, 2021
1 parent d6ff506 commit be50005
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/ProviderHub/help/Get-AzProviderHubCustomRollout.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Gets the custom rollout details.
### Example 1: Get a custom rollout by rollout name.
```powershell
PS C:\> Get-AzProviderHubCustomRollout -ProviderNamespace "Microsft.Contoso" -RolloutName "customRollout1"
```
Name Type
---- ----
customRollout1 Microsoft.ProviderHub/providerRegistrations/customRollouts
```

Get a custom rollout by rollout name.

Expand Down
4 changes: 2 additions & 2 deletions src/ProviderHub/help/Get-AzProviderHubDefaultRollout.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ Gets the default rollout details.
### Example 1: List all default rollouts under the resource provider.
```powershell
PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso"
```
Name Type
---- ----
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
defaultRollout2021w11 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
```

List all default rollouts under the resource provider.

### Example 2: Get a specific rollout by name.
```powershell
PS C:\> Get-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10"
```
Name Type
---- ----
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
```

Get a specific rollout by name.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ Gets the notification registration details.
### Example 1: List all the notification registration by ProviderNamespace.
```powershell
PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso"
```
Name
----
notificationRegistrationTest1
notificationRegistrationTest2
```

List all the notification registration in the provider namespace.

### Example 1: Get the notification registration by name.
```powershell
PS C:\> Get-AzProviderHubNotificationRegistration -ProviderNamespace "Microsoft.Contoso" -Name "notificationRegistrationTest"
```
Name
----
notificationRegistrationTest
```

Get the notification registration by name.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Gets the provider registration details.
### Example 1: Get the provider registration.
```powershell
PS C:\> Get-AzProviderHubProviderRegistration -ProviderNamespace "Microsoft.Contoso"
```
Name Type
---- ----
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
```

Get the provider registration.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ Gets a resource type details in the given subscription and provider.
### Example 1: List all resource types under the resource provider namespace.
```powershell
PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso"
```
Name Type
---- ----
testResourceType1 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
testResourceType2 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
```

List all resource types under the resource provider namespace.

### Example 2: Gets a resource type by name.
```powershell
PS C:\> Get-AzProviderHubResourceTypeRegistration -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType1"
```
Name Type
---- ----
testResourceType1 Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
```

Gets a resource type by name.

Expand Down
2 changes: 1 addition & 1 deletion src/ProviderHub/help/Get-AzProviderHubSku.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ Gets the sku details for the given resource type and sku name.
### Example 1: Get the resource SKU definition.
```powershell
PS C:\> Get-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "testResourceType" -Sku "default"
```
Name Type
---- ----
testResourceType Microsoft.ProviderHub/providerRegistrations/skus
```

Get the resource SKU definition.

Expand Down
4 changes: 2 additions & 2 deletions src/ProviderHub/help/Invoke-AzProviderHubManifestCheckin.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ Checkin the manifest.
### Example 1: Checkin the resource provider manifest.
```powershell
PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "NorthEurope" -Environment "Canary"
```
CommitId IsCheckedIn PullRequest StatusMessage
-------- ----------- ----------- -------------
False Manifest is successfully merged.
```

Checkin the resource provider manifest.

### Example 2: Checkin the resource provider manifest.
```powershell
PS C:\> Invoke-AzProviderHubManifestCheckin -ProviderNamespace "Microsoft.Contoso" -BaselineArmManifestLocation "EastUS2EUAP" -Environment "Prod"
```
CommitId IsCheckedIn PullRequest StatusMessage
-------- ----------- ----------- -------------
False Manifest is successfully merged.
```

Checkin the resource provider manifest.

Expand Down
2 changes: 1 addition & 1 deletion src/ProviderHub/help/New-AzProviderHubCustomRollout.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Creates or updates the rollout details.
### Example 1: Create/Update a resource provider custom rollout.
```powershell
PS C:\> New-AzProviderHubCustomRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "customRollout1" -CanaryRegion "Eastus2EUAP"
```
Name Type
---- ----
customRollout1 Microsoft.ProviderHub/providerRegistrations/customRollouts
```

Create/Update a resource provider custom rollout.

Expand Down
2 changes: 1 addition & 1 deletion src/ProviderHub/help/New-AzProviderHubDefaultRollout.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Creates or updates the rollout details.
### Example 1: Create/Update a resource provider default rollout.
```powershell
PS C:\> New-AzProviderHubDefaultRollout -ProviderNamespace "Microsoft.Contoso" -RolloutName "defaultRollout2021w10" -CanarySkipRegion "brazilus" -NoWait
```
Name Type
---- ----
defaultRollout2021w10 Microsoft.ProviderHub/providerRegistrations/defaultRollouts
```

Create/Update a resource provider default rollout.

Expand Down
4 changes: 2 additions & 2 deletions src/ProviderHub/help/New-AzProviderHubManifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ Generates the manifest for the given provider.
### Example 1: Generate the resource provider manifest.
```powershell
PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso"
```
Namespace ProviderType ProviderVersion RequiredFeature
--------- ------------ --------------- ---------------
Microsoft.Contoso Internal, Hidden 2.0
```

Generate the resource provider manifest.

### Example 2: Generate the resource provider manifest.
```powershell
PS C:\> New-AzProviderHubManifest -ProviderNamespace "Microsoft.Contoso"
```
Namespace ProviderType ProviderVersion RequiredFeature
--------- ------------ --------------- ---------------
Microsoft.Contoso Internal, Hidden 2.0
```

Generate the resource provider manifest.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ Creates or updates a notification registration.
### Example 1: Create/Update a notification registration.
```powershell
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"}
```
Name
----
notificationRegistrationTest
```

Create/Update a notification registration.

### Example 2: Create/Update a notification registration.
```powershell
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"}
```
Name
----
notificationRegistrationTest
```

Create/Update a notification registration.

Expand Down
4 changes: 2 additions & 2 deletions src/ProviderHub/help/New-AzProviderHubProviderRegistration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ Creates or updates the provider registration.
### Example 1: Create/Update a provider registration.
```powershell
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 "help@microsoft.com" -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"}
```
Name Type
---- ----
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
```

Create/Update a provider registration.

### Example 2: Create/Update a provider registration.
```powershell
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 "help@microsoft.com" -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"}
```
Name Type
---- ----
Microsoft.Contoso Microsoft.ProviderHub/providerRegistrations
```

Create/Update a provider registration.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ Creates or updates a resource type.
### Example 1: Create/Update a resource type registration.
```powershell
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
```
Name Type
---- ----
testResourceType Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
```

Create/Update a resource type registration.

### Example 2: Create/Update a resource type registration.
```powershell
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
```
Name Type
---- ----
testResourceType Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations
```

Create/Update a resource type registration.

Expand Down
4 changes: 2 additions & 2 deletions src/ProviderHub/help/New-AzProviderHubSku.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ Creates or updates the resource type skus in the given resource type.
### Example 1: Create/Update a resource SKU definition.
```powershell
PS C:\> New-AzProviderHubSku -ProviderNamespace "Microsoft.Contoso" -ResourceType "Employees" -Sku "default" -SkuSetting @{Name = "freeSku"; Tier = "Tier1"; Kind = "Standard"}
```
Name Type
---- ----
default Microsoft.ProviderHub/providerRegistrations/skus
```

Create/Update a resource SKU definition.

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

Create/Update a resource SKU definition.

Expand Down

0 comments on commit be50005

Please sign in to comment.