Skip to content

Commit ea6b284

Browse files
Updating requires and ReadMe
1 parent 59a73d7 commit ea6b284

3 files changed

Lines changed: 28 additions & 6 deletions

File tree

Infrastructure/AzureStack.Infra.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See LICENSE.txt in the project root for license information.
33

44
#requires -Version 4.0
5-
#requires -Modules AzureRM.Profile, AzureRm.AzureStackAdmin,AzureStack.Connect
5+
#requires -Modules AzureStack.Connect
66

77

88
<#

ServiceAdmin/AzureStack.ServiceAdmin.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See LICENSE.txt in the project root for license information.
33

44
#requires -Version 4.0
5-
#requires -Modules AzureRM.Profile, AzureRm.AzureStackAdmin
5+
#requires -Modules AzureStack.Connect
66

77
<#
88
.SYNOPSIS

ServiceAdmin/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,39 @@
22

33
Instructions below are relative to the .\ServiceAdmin folder of the [AzureStack-Tools repo](..\).
44

5+
Make sure you have the following module prerequisites installed:
6+
7+
```powershell
8+
Install-Module -Name AzureRM -RequiredVersion 1.2.8 -Scope CurrentUser
9+
Install-Module -Name AzureStack
10+
```
11+
Then make sure the following modules are imported:
12+
513
```powershell
14+
Import-Module ..\Connect\AzureStack.Connect.psm1
615
Import-Module .\AzureStack.ServiceAdmin.psm1
716
```
817

9-
## Create default plan and quota for tenants
18+
Creating quotas/offers/plans requires that you obtain the GUID value of your Directory Tenant. If you know the non-GUID form of the Azure Active Directory Tenant used to deploy your Azure Stack instance, you can retrieve the GUID value with the following:
19+
20+
```powershell
21+
$aadTenant = Get-AADTenantGUID -AADTenantName "<myaadtenant>.onmicrosoft.com"
22+
```
1023

24+
Otherwise, it can be retrieved directly from your Azure Stack deployment. First, add your host to the list of TrustedHosts:
25+
```powershell
26+
Set-Item wsman:\localhost\Client\TrustedHosts -Value "<Azure Stack host address>" -Concatenate
27+
```
28+
Then execute the following:
1129
```powershell
12-
$serviceAdminPassword = ConvertTo-SecureString "<Azure Stack service admin password in AAD>" -AsPlainText -Force
13-
$serviceAdmin = New-Object System.Management.Automation.PSCredential -ArgumentList "<myadmin>@<mydirectory>.onmicrosoft.com", $serviceAdminPassword
30+
$Password = ConvertTo-SecureString "<Admin password provided when deploying Azure Stack>" -AsPlainText -Force
31+
$AadTenant = Get-AzureStackAadTenant -HostComputer <Host IP Address> -Password $Password
32+
```
1433

15-
New-AzureStackTenantOfferAndQuotas -ServiceAdminCredential $serviceAdmin
34+
## Create default plan and quota for tenants
35+
36+
```powershell
37+
New-AzSTenantOfferAndQuotas -tenantID $aadTenant
1638
```
1739

1840
Tenants can now see the "default" offer available to them and can subscribe to it. The offer includes unlimited compute, network, storage and key vault usage.

0 commit comments

Comments
 (0)