Skip to content

Commit b928c75

Browse files
author
Pooja Adhikari
committed
Fix the broken buikd and update the help document examples.
1 parent 8604dd9 commit b928c75

File tree

4 files changed

+75
-66
lines changed

4 files changed

+75
-66
lines changed

src/HealthcareApis/HealthcareApis/Common/HealthcareApisBaseCmdlet.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public abstract class HealthcareApisBaseCmdlet : AzureRMCmdlet
4040

4141
protected const string ResourceProviderName = "Microsoft.HealthcareApis";
4242
protected const string ResourceTypeName = "Microsoft.HealthcareApis/services";
43+
protected const string ResourceType = "services";
4344

4445
public IHealthcareApisManagementClient HealthcareApisClient
4546
{
@@ -137,7 +138,7 @@ protected bool ValidateAndExtractName(string resourceId, out string resourceGrou
137138
if (string.Equals(ResourceProviderName,
138139
ResourceIdentifier.GetProviderFromResourceType(resourceIdentifier.ResourceType),
139140
System.StringComparison.InvariantCultureIgnoreCase)
140-
&& string.Equals(ResourceTypeName,
141+
&& string.Equals(ResourceType,
141142
ResourceIdentifier.GetTypeFromResourceType(resourceIdentifier.ResourceType),
142143
System.StringComparison.InvariantCultureIgnoreCase))
143144
{

src/HealthcareApis/HealthcareApis/help/Get-AzHealthcareApisService.md

Lines changed: 46 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ Gets existing healthcareApis fhir service accounts created within the specified
3939
```powershell
4040
PS C:\> Get-AzHealthcareApisService -Name "MyService" -ResourceGroupName "MyResourceGroup"
4141
42-
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
42+
ResourceGroupName : MyResourceGroup
43+
Name: : MyService
44+
Id : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
4345
.HealthcareApis/services/MyService
44-
Name : MyService
45-
Location : westus
46-
Type : Microsoft.HealthcareApis/services
47-
Kind : fhir-R4
46+
Location : westus2
47+
ResourceType : Microsoft.HealthcareApis/services
48+
Kind : FhirR4
49+
Tags : {}
50+
Properties : Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisServiceConfig
4851
Etag : val
49-
Tags : {[key, val]}
50-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
51-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
52-
ResourceGroupName : MyResourceGroupName
5352
```
5453

5554
### Example 2
@@ -59,29 +58,27 @@ Gets the metadata for all HealthcareApis services in the provided Resource Group
5958
```powershell
6059
PS C:\> Get-AzHealthcareApisService -ResourceGroupName "MyResourceGroup"
6160
62-
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
63-
.HealthcareApis/services/MyService1
64-
Name : MyService1
65-
Location : westus
66-
Type : Microsoft.HealthcareApis/services
67-
Kind : fhir-R4
61+
ResourceGroupName : MyResourceGroup
62+
Name: : MyService
63+
Id : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
64+
.HealthcareApis/services/MyService
65+
Location : westus2
66+
ResourceType : Microsoft.HealthcareApis/services
67+
Kind : FhirR4
68+
Tags : {}
69+
Properties : Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisServiceConfig
6870
Etag : val
69-
Tags : {[key, val]}
70-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
71-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
72-
ResourceGroupName : MyResourceGroupName
73-
74-
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
75-
.HealthcareApis/services/MyService2
76-
Name : MyService2
77-
Location : westus
78-
Type : Microsoft.HealthcareApis/services
79-
Kind : fhir-R4
71+
72+
ResourceGroupName : MyResourceGroup
73+
Name: : MyService1
74+
Id : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
75+
.HealthcareApis/services/MyService1
76+
Location : westus2
77+
ResourceType : Microsoft.HealthcareApis/services
78+
Kind : FhirR4
79+
Tags : {}
80+
Properties : Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisServiceConfig
8081
Etag : val
81-
Tags : {[key, val]}
82-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
83-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
84-
ResourceGroupName : MyResourceGroupName
8582
```
8683

8784
### Example 3
@@ -91,29 +88,27 @@ Gets the metadata for all HealthcareApis services in the given subscription
9188
```powershell
9289
PS C:\> Get-AzHealthcareApisService
9390
94-
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
95-
.HealthcareApis/services/MyService1
96-
Name : MyService1
97-
Location : westus
98-
Type : Microsoft.HealthcareApis/services
99-
Kind : fhir-R4
91+
ResourceGroupName : MyResourceGroup
92+
Name: : MyService
93+
Id : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
94+
.HealthcareApis/services/MyService
95+
Location : westus2
96+
ResourceType : Microsoft.HealthcareApis/services
97+
Kind : FhirR4
98+
Tags : {}
99+
Properties : Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisServiceConfig
100100
Etag : val
101-
Tags : {[key, val]}
102-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
103-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
104-
ResourceGroupName : MyResourceGroupName
105-
106-
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
107-
.HealthcareApis/services/MyService2
108-
Name : MyService2
109-
Location : westus
110-
Type : Microsoft.HealthcareApis/services
111-
Kind : fhir-R4
101+
102+
ResourceGroupName : MyResourceGroup
103+
Name: : MyService1
104+
Id : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
105+
.HealthcareApis/services/MyService1
106+
Location : westus2
107+
ResourceType : Microsoft.HealthcareApis/services
108+
Kind : FhirR4
109+
Tags : {}
110+
Properties : Microsoft.Azure.Commands.HealthcareApis.Models.PSHealthcareApisServiceConfig
112111
Etag : val
113-
Tags : {[key, val]}
114-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
115-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
116-
ResourceGroupName : MyResourceGroupName
117112
```
118113

119114
## PARAMETERS

src/HealthcareApis/HealthcareApis/help/New-AzHealthcareApisService.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ ResourceGroupName Name Location Kind CosmosOfferThroughput
3333
----------------- ----------- -------------------------------
3434
MyResourceGroup MyService westus2 fhir-R4 400
3535
36+
Properties : Microsoft.Azure.Management.HealthcareApis.Models.ServicesProperties
3637
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
3738
.HealthcareApis/services/MyService
3839
Name : MyService
39-
Location : westus
4040
Type : Microsoft.HealthcareApis/services
41-
Kind : fhir-R4
42-
Etag : val
41+
Kind : FhirR4
42+
Location : westus2
4343
Tags : {[key, val]}
44-
Properties : Microsoft.Azure.Commands.HealthcareApisService.Models.PSHealthcareApisFhirServiceConfig
45-
SubscriptionId : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
46-
ResourceGroupName : MyResourceGroupName
44+
Etag : val
4745
```
4846

4947
## PARAMETERS

src/HealthcareApis/HealthcareApis/help/Set-AzHealthcareApisService.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,39 @@ Updates an existing healthcareApis fhir service.
4141

4242
## EXAMPLES
4343

44-
### Example 1
44+
### Example 1 : Updates the existing healthcareapis service named MyService in the resource group MyResourceGroup with the cosmosdb OfferThroughput = 500.
45+
4546
```powershell
4647
PS C:\> Set-AzHealthcareApisService -Name MyService -ResourceGroupName MyResourceGroup -CosmosOfferThroughput 500
4748
48-
ResourceGroupName Name
49-
----------------- -----------
50-
MyResourceGroup MyService
49+
Properties : Microsoft.Azure.Management.HealthcareApis.Models.ServicesProperties
50+
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
51+
.HealthcareApis/services/MyService
52+
Name : MyService
53+
Type : Microsoft.HealthcareApis/services
54+
Kind : FhirR4
55+
Location : westus2
56+
Tags : {[key, val]}
57+
Etag : val
5158
```
5259

53-
Updates the existing healthcareapis service named MyService in the resource group MyResourceGroup with the cosmosdb OfferThroughput = 500.
5460

55-
### Example 2
61+
### Example 2: Updates the existing healthcareapis service named MyService in the resource group MyResourceGroup with the cosmosdb OfferThroughput = 500.
62+
5663
```powershell
5764
PS C:\> $ResourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MyResourceGroup/providers/Microsoft.HealthcareApis/services/MyService"
5865
PS C:\> Set-AzHealthcareApisService -ResourceId $ResourceId -CosmosOfferThroughput 500
59-
```
6066
61-
Updates the existing healthcareapis service named MyService in the resource group MyResourceGroup with the cosmosdb OfferThroughput = 500.
67+
Properties : Microsoft.Azure.Management.HealthcareApis.Models.ServicesProperties
68+
ResourceId : /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/MyResourceGroup/providers/Microsoft
69+
.HealthcareApis/services/MyService
70+
Name : MyService
71+
Type : Microsoft.HealthcareApis/services
72+
Kind : FhirR4
73+
Location : westus2
74+
Tags : {[key, val]}
75+
Etag : val
76+
```
6277

6378
## PARAMETERS
6479

0 commit comments

Comments
 (0)