Skip to content
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

Resource Not found #1

Open
flenoir opened this issue Feb 5, 2021 · 1 comment
Open

Resource Not found #1

flenoir opened this issue Feb 5, 2021 · 1 comment

Comments

@flenoir
Copy link

flenoir commented Feb 5, 2021

Hi,

I'm using your powershell scripts and i get an error when launching it

Invoke-RestMethod : {"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.ContainerService/managedClusters/aks-eoltoppool0-33389392-vmss' under resource group 'MC_eolementhe-top-resource-group_eolementhe-top-kubernetes-cluster_westeurope' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}} At line:19 char:9 + Invoke-RestMethod -Method Post -Uri $URI -ContentType "applic ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

I did double check name resource group and subscription and everything seems to be ok.

Reading the web, it might be related to TLS issue (https://blogs.inframon.com/2018/03/forcing-tls1-2-when-using-azure-hybrid-runbook-workers/) . Do you think this may be related ? i did try without success

Have you experienced such an error using runbooks ?

thanks a lot for this great script

@pl4nty
Copy link

pl4nty commented May 13, 2021

I think you've got the input parameters wrong, those look like the cluster's underlying VMSS. You want the name and RG of the cluster resource itself, eg my-cluster in k8s-clusters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants