-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-AzRoleEligibilityScheduleRequest - "The resource type could not be found in the namespace 'Microsoft.Management' for api version '2020-10-01-preview'" #20429
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
@NikolaiKleppe Thank you for reaching out, we are looking into it. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @darshanhs90, @AshishGargMicrosoft. Issue DetailsDescriptionRunning the command: Produces this error: It also displays a "_CreateExpanded" suffix which I don't really understand, but might not be the reason for this error?
Same with Am I missing some resource provider or updates? Tried locally (Windows), Azure Cloud Shell, Azure DevOps with Linux agent using pwshI'll post two examples: Azure Cloud Shell:
Locally on Windows
Script or Debug outputNew-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing:
DEBUG: CmdletProcessRecordStart:
DEBUG: CmdletGetPipeline:
DEBUG: CmdletBeforeAPICall:
DEBUG: URLCreated: //providers/Microsoft.Management/subscriptions/aca96f2e-569b-47c5-ac1d-1aff644762b5//providers/Microsoft.Authorization/roleEligibilityScheduleRequests/ecaf853d-a5ad-469c-8635-844808fbd254?api-version=2020-10-01-preview
DEBUG: RequestCreated: //providers/Microsoft.Management/subscriptions/aca96f2e-569b-47c5-ac1d-1aff644762b5//providers/Microsoft.Authorization/roleEligibilityScheduleRequests/ecaf853d-a5ad-469c-8635-844808fbd254?api-version=2020-10-01-preview
DEBUG: HeaderParametersAdded:
DEBUG: BodyContentSet:
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com//providers/Microsoft.Management/subscriptions/aca96f2e-569b-47c5-ac1d-1aff644762b5//providers/Microsoft.Authorization/roleEligibilityScheduleRequests/ecaf853d-a5ad-469c-8635-844808fbd254?api-version=2020-10-01-preview
Headers:
x-ms-unique-id : 3
x-ms-client-request-id : 18d98969-3ed5-41d7-8b1b-7a2f2dccfb3d
CommandName : New-AzRoleEligibilityScheduleRequest
FullCommandName : New-AzRoleEligibilityScheduleRequest_CreateExpanded
ParameterSetName : __AllParameterSets
User-Agent : AzurePowershell/v9.1.0,PSVersion/v7.3.0,Az.Authorization/6.5.0
Body:
{}
DEBUG: BeforeCall:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-ratelimit-remaining-tenant-writes: 1199
x-ms-request-id : c84bbe79-cdcc-4b42-bcc4-b9a8ee9c7838
x-ms-correlation-request-id : c84bbe79-cdcc-4b42-bcc4-b9a8ee9c7838
x-ms-routing-request-id : NORWAYEAST:20221212T174510Z:c84bbe79-cdcc-4b42-bcc4-b9a8ee9c7838
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Date : Mon, 12 Dec 2022 17:45:09 GMT
Body:
{
"error": {
"code": "InvalidResourceType",
"message": "The resource type could not be found in the namespace 'Microsoft.Management' for api version '2020-10-01-preview'."
}
}
DEBUG: ResponseCreated:
DEBUG: BeforeResp Environment dataName Value
---- -----
PSVersion 7.3.0
PSEdition Core
GitCommitId 7.3.0
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0 Module versionsModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.10.4 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 6.5.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…} Error outputMessage : [InvalidResourceType] : The resource type could not be found in the namespace 'Microsoft.Management' for api version '2020-10-01-preview'.
StackTrace :
Exception : System.Exception
InvocationInfo : {New-AzRoleEligibilityScheduleRequest_CreateExpanded}
Line : New-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope
Position : At line:1 char:1
+ New-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
|
@darshanhs90 , @AshishGargMicrosoft Can you please help us look into this issue? |
My feeling is |
Yea you're right @dingmeng-xue that scope is invalid, not quite sure how I ended up with The reason I made this issue was because I (or so I thought) tested both the examples from the documentation and my own scope and got errors both times, but I must have done something wrong along the way then. I changed scope back to just In hindsight it now makes more sense as to why it complained about I'll close the issue then, thanks for the follow up! |
Description
Running the command:
New-AzRoleEligibilityScheduleRequest -Name $guid -Scope $scope
Produces this error:
The resource type could not be found in the namespace 'Microsoft.Management' for api version '2020-10-01-preview'.
It also displays a "_CreateExpanded" suffix which I don't really understand, but might not be the reason for this error?
Same with
Get-AzRoleEligibilityScheduleRequest
.Happens with both required input only and full example from the docs
Am I missing some resource provider or updates?
Tried locally (Windows), Azure Cloud Shell, Azure DevOps with Linux agent using pwsh
I'll post two examples:
Azure Cloud Shell:
Locally on Windows
Script or Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: