Skip to content

Commit 430f61d

Browse files
authored
Merge pull request Azure#15 from deathly809/deepthbranch
Fixing examples for Commerce, Compute, Fabric, Gallery and Bridge
2 parents f72e583 + 720cf63 commit 430f61d

File tree

90 files changed

+154
-1095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+154
-1095
lines changed

src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsBackup.ps1

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<#
2-
Copyright (c) Microsoft and contributors. All rights reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the ""License"");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
Code generated by Microsoft (R) PSSwagger 0.3.0
17-
Changes may cause incorrect behavior and will be lost if the code is regenerated.
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. See License.txt in the project root for license information.
184
#>
195

206
<#
@@ -38,19 +24,13 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
3824
3925
.EXAMPLE
4026
41-
PS C:\> Get-AzsBackup -ResourceGroupName system.local -Location local
42-
43-
BackupDataVersion :
44-
BackupId : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
45-
RoleStatus : {NRP, SRP, CRP, KeyVaultInternalControlPlane...}
46-
Status : Succeeded
47-
CreatedDateTime : 3/15/2018 1:31:01 AM
48-
TimeTakenToCreate : PT6M41.7853037S
49-
Id : /subscriptions/b3d6379e-711c-48eb-b051-3c71305ec104/resourceGroups/system.local/providers/Microsoft.Backup.Admin/backupLocations/local/backups/4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
50-
Name : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
51-
Type : Microsoft.Backup.Admin/backupLocations/backups
52-
Location : local
53-
Tags : {}
27+
PS C:\> Get-AzsBackup
28+
29+
Get information sbout all Azure Stack backups.
30+
31+
.EXAMPLE
32+
33+
PS C:\> Get-AzsBackup -Name 'backupName'
5434
5535
Get information for the the specified Azure Stack backup.
5636

src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsBackupLocation.ps1

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<#
2-
Copyright (c) Microsoft and contributors. All rights reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the ""License"");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
Code generated by Microsoft (R) PSSwagger 0.3.0
17-
Changes may cause incorrect behavior and will be lost if the code is regenerated.
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. See License.txt in the project root for license information.
184
#>
195

206
<#
@@ -41,22 +27,7 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
4127
4228
.EXAMPLE
4329
44-
PS C:\> Get-AzsBackupLocation -ResourceGroupName system.local -Location local
45-
46-
Path : \\su1fileserver\SU1_Infrastructure_3
47-
UserName : azurestack\azurestackadmin
48-
Password :
49-
EncryptionKeyBase64 :
50-
BackupFrequencyInHours :
51-
AvailableCapacity : 10GB
52-
IsBackupSchedulerEnabled : False
53-
NextBackupTime :
54-
LastBackupTime :
55-
Id : /subscriptions/b3d6379e-711c-48eb-b051-3c71305ec104/resourcegroups/system.local/providers/Microsoft.Backup.Admin/backupLocations/local
56-
Name : local
57-
Type : Microsoft.Backup.Admin/backupLocations
58-
Location : local
59-
Tags : {}
30+
PS C:\> Get-AzsBackupLocation
6031
6132
Get Azure Stack backup configuration.
6233

src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Restore-AzsBackup.ps1

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<#
2-
Copyright (c) Microsoft and contributors. All rights reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the ""License"");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
Code generated by Microsoft (R) PSSwagger 0.3.0
17-
Changes may cause incorrect behavior and will be lost if the code is regenerated.
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. See License.txt in the project root for license information.
184
#>
195

206
<#
@@ -35,7 +21,7 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
3521
3622
.EXAMPLE
3723
38-
Restore-AzsBackup -ResourceGroupName system.local -Location local -Backup 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
24+
Restore-AzsBackup -Backup 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
3925
4026
Restore from an Azure Stack backup.
4127

src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Set-AzsBackupShare.ps1

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<#
2-
Copyright (c) Microsoft and contributors. All rights reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the ""License"");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
Code generated by Microsoft (R) PSSwagger 0.3.0
17-
Changes may cause incorrect behavior and will be lost if the code is regenerated.
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. See License.txt in the project root for license information.
184
#>
195

206
<#
@@ -53,19 +39,7 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
5339
5440
.EXAMPLE
5541
56-
PS C:\> Set-AzsBackupShare -ResourceGroupName system.local -Location local -BackupShare "\\su1fileserver\SU1_Infrastructure_3" -Username "azurestack\azurestackadmin" -Password $password -EncryptionKey $encryptionKey
57-
58-
BackupDataVersion :
59-
BackupId : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
60-
RoleStatus : {NRP, SRP, CRP, KeyVaultInternalControlPlane...}
61-
Status : Succeeded
62-
CreatedDateTime : 3/15/2018 1:31:01 AM
63-
TimeTakenToCreate : PT6M41.7853037S
64-
Id : /subscriptions/b3d6379e-711c-48eb-b051-3c71305ec104/resourceGroups/system.local/providers/Microsoft.Backup.Admin/backupLocations/local/backups/4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
65-
Name : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
66-
Type : Microsoft.Backup.Admin/backupLocations/backups
67-
Location : local
68-
Tags : {}
42+
PS C:\> Set-AzsBackupShare -BackupShare "\\***.***.***.***\Share" -Username "asdomain1\azurestackadmin" -Password $password -EncryptionKey $encryptionKey
6943
7044
Set Azure Stack backup configuration.
7145

src/StackAdmin/Azs.Backup.Admin/Module/Azs.Backup.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Start-AzsBackup.ps1

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
<#
2-
Copyright (c) Microsoft and contributors. All rights reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the ""License"");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
16-
Code generated by Microsoft (R) PSSwagger 0.3.0
17-
Changes may cause incorrect behavior and will be lost if the code is regenerated.
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. See License.txt in the project root for license information.
184
#>
195

206
<#
@@ -32,19 +18,7 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
3218
3319
.EXAMPLE
3420
35-
PS C:\>Start-AzsBackup -ResourceGroupName system.local -Location local
36-
37-
BackupDataVersion :
38-
BackupId : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
39-
RoleStatus : {NRP, SRP, CRP, KeyVaultInternalControlPlane...}
40-
Status : Succeeded
41-
CreatedDateTime : 3/15/2018 1:31:01 AM
42-
TimeTakenToCreate : PT6M41.7853037S
43-
Id : /subscriptions/b3d6379e-711c-48eb-b051-3c71305ec104/resourceGroups/system.local/providers/Microsoft.Backup.Admin/backupLocations/local/backups/4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
44-
Name : 4e90bd2f-c7ab-47a3-a3c7-908cddd1ad0e
45-
Type : Microsoft.Backup.Admin/backupLocations/backups
46-
Location : local
47-
Tags : {}
21+
PS C:\>Start-AzsBackup
4822
4923
Start an Azure Stack backup.
5024

src/StackAdmin/Azs.Backup.Admin/Tests/src/BackupLocation.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ InModuleScope Azs.Backup.Admin {
146146

147147
[String]$username = "azurestack\AzureStackAdmin"
148148
[SecureString]$password = ConvertTo-SecureString -String "password" -AsPlainText -Force
149-
[String]$path = "\\su1fileserver\SU1_Infrastructure_3"
149+
[String]$path = "\\192.168.1.1\Share"
150150
[SecureString]$encryptionKey = ConvertTo-SecureString -String "YVVOa0J3S2xTamhHZ1lyRU9wQ1pKQ0xWanhjaHlkaU5ZQnNDeHRPTGFQenJKdWZsRGtYT25oYmlaa1RMVWFKeQ==" -AsPlainText -Force
151151

152152
$backup = Set-AzsBackupShare -ResourceGroupName $global:ResourceGroup -Location $global:Location -Username $username -Password $password -BackupShare $path -EncryptionKey $encryptionKey -Wait

src/StackAdmin/Azs.Commerce.Admin/Module/Azs.Commerce.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsSubscriberUsage.ps1

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ Licensed under the MIT License. See License.txt in the project root for license
3535
3636
Get-AzsSubscriberUsage -ReportedStartTime "2017-09-06T00:00:00Z" -ReportedEndTime "2017-09-07T00:00:00Z"
3737
38-
UsageStartTime Type InstanceData
39-
-------------- ---- ------------
40-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Micro...
41-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Micro...
42-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourceGroups/derpgroup/providers/Micro...
43-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourceGroups/derpgroup/providers/Micro...
44-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Micro...
45-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Micro...
46-
9/6/2017 12:00:00 AM Microsoft.Commerce/UsageAggregate {"Microsoft.Resources":{"resourceUri":"/subscriptions/36770ead-1c95-4048-8ff3-d727dd5007de/resourcegroups/derpgroup/providers/Micro...
47-
4838
Get usage data from the last 24 hours.
4939
5040
#>

src/StackAdmin/Azs.Compute.Admin/Module/Azs.Compute.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Add-AzsPlatformImage.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
4242
4343
.EXAMPLE
4444
45-
PS C:\> Add-AzsPlatformImage -Location Canonical -Publisher Test -Offer UbuntuServer -Sku 16.04-LTS -Version 1.0.0 -OsType "Linux" -OsUri "https://test.blob.local.azurestack.external/test/xenial-server-cloudimg-amd64-disk1.vhd"
46-
47-
Id Type Name Location
48-
-- ---- ---- --------
49-
/subscriptions/0ff0bbbe-d68... Microsoft.Compute.Admin/loc... Canonical
45+
PS C:\> Add-AzsPlatformImage -Publisher Test -Offer UbuntuServer -Sku 16.04-LTS -Version 1.0.0 -OsType "Linux" -OsUri "https://test.blob.local.azurestack.external/test/xenial-server-cloudimg-amd64-disk1.vhd"
5046
5147
Add a new platform image.
5248

src/StackAdmin/Azs.Compute.Admin/Module/Azs.Compute.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Add-AzsVMExtension.ps1

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,7 @@ Licensed under the MIT License. See License.txt in the project root for license
4242
4343
.EXAMPLE
4444
45-
PS C:\> Add-AzsVMExtension -Location local -Publisher "Microsoft" -Type "MicroExtension" -Version "0.1.0" -ComputeRole "IaaS" -SourceBlob "https://github.com/Microsoft/PowerShell-DSC-for-Linux/archive/v1.1.1-294.zip" -SupportMultipleExtensions -VmOsType "Linux"
46-
47-
VmOsType : Linux
48-
ComputeRole : N/A
49-
VmScaleSetEnabled : False
50-
SupportMultipleExtensions : True
51-
IsSystemExtension : False
52-
SourceBlob : Microsoft.AzureStack.Management.Compute.Admin.Models.AzureBlob
53-
ProvisioningState : Creating
54-
Id : /subscriptions/0ff0bbbe-d68d-4314-8f68-80a808b5a6ec/providers/Microsoft.Compute.Admin/locations/local/artifactTypes/VMExtension/publishers/Microsoft/types/MicroExtension/versions/0.1.0
55-
Name :
56-
Type : Microsoft.Compute.Admin/locations/artifactTypes/VMExtension/publishers/types/versions/
57-
Location : local
45+
PS C:\> Add-AzsVMExtension -Publisher "Microsoft" -Type "MicroExtension" -Version "0.1.0" -ComputeRole "IaaS" -SourceBlob "https://github.com/Microsoft/PowerShell-DSC-for-Linux/archive/v1.1.1-294.zip" -SupportMultipleExtensions -VmOsType "Linux"
5846
5947
Add a new platform image.
6048

src/StackAdmin/Azs.Compute.Admin/Module/Azs.Compute.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsComputeQuota.ps1

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,13 @@ Changes may cause incorrect behavior and will be lost if the code is regenerated
2424
2525
.EXAMPLE
2626
27-
PS C:\> Get-AzsComputeQuota -Location local
28-
29-
AvailabilitySet Id Type CoresLimit VmScaleSetCount Name VirtualMachineC Location
30-
Count ount
31-
--------------- -- ---- ---------- --------------- ---- --------------- --------
32-
10 /subscriptio... Microsoft.Co... 50 20 Default Quota 20 local
27+
PS C:\> Get-AzsComputeQuota
3328
3429
Get all compute quotas at the specified location.
3530
3631
.EXAMPLE
3732
38-
PS C:\> Get-AzsComputeQuota -Location local -Name 'Default Quota'
39-
40-
AvailabilitySet Id Type CoresLimit VmScaleSetCount Name VirtualMachineC Location
41-
Count ount
42-
--------------- -- ---- ---------- --------------- ---- --------------- --------
43-
10 /subscriptio... Microsoft.Co... 50 20 Default Quota 20 local
33+
PS C:\> Get-AzsComputeQuota 'Default Quota'
4434
4535
Get a specific compute quota.
4636

0 commit comments

Comments
 (0)