Open
Description
Description
No Provider for "Microsoft.Web/hostingEnvironments/capacities"; unable to retrieve ASE ILB Private IP. If I include -ApiVersion, the body contains the information but it isn't parsed; otherwise, the body is empty.
Script/Steps for Reproduction
$vip = Get-AzureRmResource -ResourceGroupName "ResourceGroupName" -ResourceType Microsoft.Web/hostingEnvironments/capacities -ResourceName ASEName/virtualip
Module Version
PS C:\Users\Leandro.Wajswajn> Get-Module AzureRM -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.7.0 AzureRM
Script 6.6.0 AzureRM
Script 6.4.0 AzureRM
Script 5.7.0 AzureRM
Environment Data
PS C:\Users\Leandro.Wajswajn> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.16299.611
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.611
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Debug Output
PS C:\Users\Leandro.Wajswajn> $vip = Get-AzureRmResource -ResourceGroupName ResourceGroupName -ResourceType Microsoft
.Web/hostingEnvironments/capacities -ResourceName ASEName/virtualip -debug -ApiVersion 2018-02-01
DEBUG: 20:39:31 - GetAzureResourceCmdlet begin processing with ParameterSet 'ByTagNameValueParameterSet'.
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
DEBUG: 20:39:32 - using account id '[email protected]'...
DEBUG: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud',
tenant: 'TenantId'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: - TokenCache: Serializing token cache with 13 items.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: - TokenCache: Serializing token cache with 13 items.
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain:
'TenantId', Endpoint: 'https://login.microsoftonline.com/', ClientId:
'1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri:
'https://management.core.windows.net/', ValidateAuthrity: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority
'https://login.microsoftonline.com/TenantId/', CorrelationId:
'00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain:
'TenantId', AdEndpoint: 'https://login.microsoftonline.com/', ClientId:
'1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - AcquireTokenHandlerBase: === Token Acquisition
started:
Authority: https://login.microsoftonline.com/TenantId/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (13 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: - TokenCache: Deserialized 13 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - TokenCache: An item matching the requested resource
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - TokenCache: 43.3708035866667 minutes left until
token in cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - TokenCache: A matching item (access token or refresh
token or both) was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:32: cdb85581-cd0f-4189-b421-3c26a984dd51 - AcquireTokenHandlerBase: === Token Acquisition
finished successfully. An access token was retuned:
Access Token Hash: BTZHOZsVU/W7kTfDXn+M9mUfYi9qwCGdBbS9imHwUtY=
Refresh Token Hash: BERskTPKlhSIsRwF2N9RfI0fGwcvXCREjnlAsdTEUOI=
Expiration Time: 09/08/2018 00:22:54 +00:00
User Hash: lhIWWGoBn7lZutEMIBRS+ymGypeM/6gDwj8R1h3EXXQ=
DEBUG: [Common.Authentication]: Received token with LoginType 'LiveId', Tenant: 'TenantId',
UserId: '[email protected]'
DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '09/08/2018 00:22:54 +00:00',
MultipleResource? 'True', Tenant: 'TenantId', UserId: '[email protected]'
DEBUG: [Common.Authentication]: User info for token DisplayId: '[email protected]', Name: Leandro Wajswajn Pereyra
AR014251056, IdProvider: 'https://sts.windows.net/TenantId/', Uid:
'012b66f7-bb7f-46f4-906b-9c0b28c9288c'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '09/08/2018 00:22:54 +00:00' Comparing to
'09/07/2018 23:39:32 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:43:22.2482152'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/pro
viders/Microsoft.Web/hostingEnvironments/ASEName/capacities/virtualip?api-version=2018-02-01
Headers:
User-Agent : AzurePowershell/v6.7.0,PSVersion/v5.1.16299.611
ParameterSetName : ByTagNameValueParameterSet
CommandName : Get-AzureRmResource
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : 61e66cbf-aaa4-4516-a5ca-6f9097202d29
x-ms-ratelimit-remaining-subscription-reads: 11989
x-ms-correlation-request-id : 0c979386-8b0c-4bc7-9ca6-c6231a9e8839
x-ms-routing-request-id : BRAZILSOUTH:20180907T233943Z:0c979386-8b0c-4bc7-9ca6-c6231a9e8839
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Fri, 07 Sep 2018 23:39:43 GMT
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
Body:
{
"serviceIpAddress": "157.55.143.197",
"internalIpAddress": "10.47.1.139",
"outboundIpAddresses": [
"157.55.143.197"
],
"vipMappings": []
}
DEBUG: 20:39:43 - GetAzureResourceCmdlet end processing.
DEBUG: 20:39:43 - GetAzureResourceCmdlet end processing.
PS C:\Users\Leandro.Wajswajn> $vip
PS C:\Users\Leandro.Wajswajn> $vip = Get-AzureRmResource -ResourceGroupName ResourceGroupName -ResourceType Microsoft
.Web/hostingEnvironments/capacities -ResourceName ASEName/virtualip -debug
DEBUG: 20:39:54 - GetAzureResourceCmdlet begin processing with ParameterSet 'ByTagNameValueParameterSet'.
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
DEBUG: 20:39:55 - using account id '[email protected]'...
DEBUG: [Common.Authentication]: Authenticating using Account: '[email protected]', environment: 'AzureCloud',
tenant: 'TenantId'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - AcquireTokenHandlerBase: === Token Acquisition
started:
Authority: https://login.microsoftonline.com/TenantId/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (13 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: - TokenCache: Deserialized 13 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - TokenCache: An item matching the requested resource
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - TokenCache: 42.981775245 minutes left until token in
cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - TokenCache: A matching item (access token or refresh
token or both) was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 361f5a03-e5c9-4dc6-afe1-5abbbbe913bf - AcquireTokenHandlerBase: === Token Acquisition
finished successfully. An access token was retuned:
Access Token Hash: BTZHOZsVU/W7kTfDXn+M9mUfYi9qwCGdBbS9imHwUtY=
Refresh Token Hash: BERskTPKlhSIsRwF2N9RfI0fGwcvXCREjnlAsdTEUOI=
Expiration Time: 09/08/2018 00:22:54 +00:00
User Hash: lhIWWGoBn7lZutEMIBRS+ymGypeM/6gDwj8R1h3EXXQ=
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - AcquireTokenHandlerBase: === Token Acquisition
started:
Authority: https://login.microsoftonline.com/TenantId/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (13 items)
Authentication Target: User
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: - TokenCache: Deserialized 13 items to token cache.
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - TokenCache: Looking up cache for a token...
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - TokenCache: An item matching the requested resource
was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - TokenCache: 42.98073354 minutes left until token in
cache expires
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - TokenCache: A matching item (access token or refresh
token or both) was found in the cache
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 09/07/2018 23:39:55: 1733c350-3899-4e56-a0ad-7a7c06c2e0be - AcquireTokenHandlerBase: === Token Acquisition
finished successfully. An access token was retuned:
Access Token Hash: BTZHOZsVU/W7kTfDXn+M9mUfYi9qwCGdBbS9imHwUtY=
Refresh Token Hash: BERskTPKlhSIsRwF2N9RfI0fGwcvXCREjnlAsdTEUOI=
Expiration Time: 09/08/2018 00:22:54 +00:00
User Hash: lhIWWGoBn7lZutEMIBRS+ymGypeM/6gDwj8R1h3EXXQ=
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/res
ources?$filter=resourceType EQ 'Microsoft.Web/hostingEnvironments/capacities'&api-version=2018-05-01
Headers:
x-ms-client-request-id : ec1d5d8c-3f41-4522-ab83-16ff7b2350ba
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
OK
Headers:
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-request-id : 019e7278-e524-4fec-9163-1d5925ddd775
x-ms-correlation-request-id : 019e7278-e524-4fec-9163-1d5925ddd775
x-ms-routing-request-id : BRAZILSOUTH:20180907T234000Z:019e7278-e524-4fec-9163-1d5925ddd775
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Fri, 07 Sep 2018 23:40:00 GMT
Body:
{
"value": []
}
DEBUG: 20:40:00 - GetAzureResourceCmdlet end processing.
DEBUG: 20:40:00 - GetAzureResourceCmdlet end processing.