diff --git a/src/CloudService/docs/Get-AzCloudService.md b/src/CloudService/docs/Get-AzCloudService.md index 15b0df2dfe02..b77a8a59a629 100644 --- a/src/CloudService/docs/Get-AzCloudService.md +++ b/src/CloudService/docs/Get-AzCloudService.md @@ -55,14 +55,11 @@ This command gets all cloud services in resource group named ContosOrg ### Example 2: Get cloud service ```powershell -Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" - -ResourceGroupName Name Location ProvisioningState ------------------ ---- -------- ----------------- -ContosOrg ContosoCS eastus2euap Succeeded - $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" $cloudService | Format-List +``` + +```output ResourceGroupName : ContosOrg Configuration : xxxxxxxx ConfigurationUrl : @@ -82,7 +79,6 @@ Tag : { Type : Microsoft.Compute/cloudServices UniqueId : xxxxxxxx UpgradeMode : Auto - ``` This command gets cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/docs/Get-AzCloudServiceNetworkInterface.md b/src/CloudService/docs/Get-AzCloudServiceNetworkInterface.md index 94e6f882df0a..08cbc73a7742 100644 --- a/src/CloudService/docs/Get-AzCloudServiceNetworkInterface.md +++ b/src/CloudService/docs/Get-AzCloudServiceNetworkInterface.md @@ -52,18 +52,11 @@ Gets all the network interfaces for a given cloud service name. ### Example 2: Get network interfaces by a cloud service object ```powershell $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca -Get-AzCloudServiceNetworkInterface -CloudService $cs +Get-AzCloudServiceNetworkInterface -InputObject $cs ``` Gets all the network interfaces for a given cloud service object. -### Example 3: Get network interfaces by a cloud service object and role instance name. -```powershell -Get-AzCloudServiceNetworkInterface -CloudServiceName $cs -RoleInstanceName WebRole1_IN_0 -``` - -Gets all the network interfaces for a given cloud service object and role instance name. - ## PARAMETERS ### -CloudServiceName diff --git a/src/CloudService/docs/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/docs/Get-AzCloudServicePublicIPAddress.md index bc6a00fbf8be..82e29e72e4bc 100644 --- a/src/CloudService/docs/Get-AzCloudServicePublicIPAddress.md +++ b/src/CloudService/docs/Get-AzCloudServicePublicIPAddress.md @@ -53,7 +53,7 @@ Gets the instance level public IP addresses for a given cloud service name. ### Example 2: Get instance level public IP addresses for a given cloud service object. ```powershell $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca -Get-AzCloudServicePublicIPAddress -CloudService $cs +Get-AzCloudServicePublicIPAddress -InputObject $cs ``` Gets the instance level public IP addresses for a given cloud service object. diff --git a/src/CloudService/examples/Get-AzCloudService.md b/src/CloudService/examples/Get-AzCloudService.md index d8f1bfbcc856..929e2f326ff6 100644 --- a/src/CloudService/examples/Get-AzCloudService.md +++ b/src/CloudService/examples/Get-AzCloudService.md @@ -16,14 +16,11 @@ This command gets all cloud services in resource group named ContosOrg ### Example 2: Get cloud service ```powershell -Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" - -ResourceGroupName Name Location ProvisioningState ------------------ ---- -------- ----------------- -ContosOrg ContosoCS eastus2euap Succeeded - $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" $cloudService | Format-List +``` + +```output ResourceGroupName : ContosOrg Configuration : xxxxxxxx ConfigurationUrl : @@ -43,7 +40,6 @@ Tag : { Type : Microsoft.Compute/cloudServices UniqueId : xxxxxxxx UpgradeMode : Auto - ``` This command gets cloud service named ContosoCS that belongs to the resource group named ContosOrg. diff --git a/src/CloudService/examples/Get-AzCloudServiceNetworkInterface.md b/src/CloudService/examples/Get-AzCloudServiceNetworkInterface.md index 200a39f43bfa..8abebfca5bd7 100644 --- a/src/CloudService/examples/Get-AzCloudServiceNetworkInterface.md +++ b/src/CloudService/examples/Get-AzCloudServiceNetworkInterface.md @@ -8,15 +8,8 @@ Gets all the network interfaces for a given cloud service name. ### Example 2: Get network interfaces by a cloud service object ```powershell $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca -Get-AzCloudServiceNetworkInterface -CloudService $cs +Get-AzCloudServiceNetworkInterface -InputObject $cs ``` Gets all the network interfaces for a given cloud service object. -### Example 3: Get network interfaces by a cloud service object and role instance name. -```powershell -Get-AzCloudServiceNetworkInterface -CloudServiceName $cs -RoleInstanceName WebRole1_IN_0 -``` - -Gets all the network interfaces for a given cloud service object and role instance name. - diff --git a/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md b/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md index 6283c3f8ddb1..cdda0db8f460 100644 --- a/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md +++ b/src/CloudService/examples/Get-AzCloudServicePublicIPAddress.md @@ -8,7 +8,7 @@ Gets the instance level public IP addresses for a given cloud service name. ### Example 2: Get instance level public IP addresses for a given cloud service object. ```powershell $cs = Get-AzCloudService -ResourceGroupName "BRGThree" -CloudServiceName BService -SubscriptionId 1133e0eb-b53c-1234-b478-2eac8f04afca -Get-AzCloudServicePublicIPAddress -CloudService $cs +Get-AzCloudServicePublicIPAddress -InputObject $cs ``` Gets the instance level public IP addresses for a given cloud service object.