(ResourceGroupNotFound) Resource group '????' could not be found when creating an azure media services...












0















I'm trying to create a Service Principal account using the instructions here



https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-api#examine-the-code-that-uploads-encodes-and-streams



However when I run the command



az ams account sp create --account-name media_service_account_name --resource-group resource_group_name



Where media_service_account_name is the name shown for the media service I have created and resource_group_name the name of the resource group shown on the same page.



The problem is I get the message (ResourceGroupNotFound) Resource group 'resource_group_name' could not be found.



I just can't see what I am doing wrong. Any help appreciated.










share|improve this question


















  • 1





    My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

    – RadarBug
    Nov 23 '18 at 12:42
















0















I'm trying to create a Service Principal account using the instructions here



https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-api#examine-the-code-that-uploads-encodes-and-streams



However when I run the command



az ams account sp create --account-name media_service_account_name --resource-group resource_group_name



Where media_service_account_name is the name shown for the media service I have created and resource_group_name the name of the resource group shown on the same page.



The problem is I get the message (ResourceGroupNotFound) Resource group 'resource_group_name' could not be found.



I just can't see what I am doing wrong. Any help appreciated.










share|improve this question


















  • 1





    My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

    – RadarBug
    Nov 23 '18 at 12:42














0












0








0








I'm trying to create a Service Principal account using the instructions here



https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-api#examine-the-code-that-uploads-encodes-and-streams



However when I run the command



az ams account sp create --account-name media_service_account_name --resource-group resource_group_name



Where media_service_account_name is the name shown for the media service I have created and resource_group_name the name of the resource group shown on the same page.



The problem is I get the message (ResourceGroupNotFound) Resource group 'resource_group_name' could not be found.



I just can't see what I am doing wrong. Any help appreciated.










share|improve this question














I'm trying to create a Service Principal account using the instructions here



https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-api#examine-the-code-that-uploads-encodes-and-streams



However when I run the command



az ams account sp create --account-name media_service_account_name --resource-group resource_group_name



Where media_service_account_name is the name shown for the media service I have created and resource_group_name the name of the resource group shown on the same page.



The problem is I get the message (ResourceGroupNotFound) Resource group 'resource_group_name' could not be found.



I just can't see what I am doing wrong. Any help appreciated.







azure-media-services






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 '18 at 18:13









RadarBugRadarBug

277




277








  • 1





    My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

    – RadarBug
    Nov 23 '18 at 12:42














  • 1





    My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

    – RadarBug
    Nov 23 '18 at 12:42








1




1





My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

– RadarBug
Nov 23 '18 at 12:42





My problem was that I had multiple subscriptions for the account and I needed to set the subscription related to the resource group first

– RadarBug
Nov 23 '18 at 12:42












1 Answer
1






active

oldest

votes


















0














Keep in mind that Resource Groups in Azure are things that you create, so the article was only providing an example of a Resource Group name.



The command to create the service principal expects you to use the resource group that you used to create your media service account.



az ams account sp create --account-name amsaccount --resource-group **amsResourceGroup**


Make sure that you are using the right resource group name that you used when you created your Media Services account first, and use a unique named one in the same region as your account. I usually call az group create before creating a new account to put it into it's own Resource Group along with the storage account I create for it.



Example
Create a new resource group named "MyResourceGroup" in the West US region.



az group create -l westus -n 


Hope that helps!






share|improve this answer
























  • I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

    – RadarBug
    Nov 22 '18 at 9:14













  • Either way whichever resource group name I use I always get the same message

    – RadarBug
    Nov 22 '18 at 9:26











  • Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

    – johndeu
    Nov 22 '18 at 16:07











  • Try "az account show" and make sure the account you are logged into in the CLI is the right one.

    – johndeu
    Nov 22 '18 at 16:08











  • I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

    – johndeu
    Nov 22 '18 at 16:13











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418223%2fresourcegroupnotfound-resource-group-could-not-be-found-when-creating-a%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Keep in mind that Resource Groups in Azure are things that you create, so the article was only providing an example of a Resource Group name.



The command to create the service principal expects you to use the resource group that you used to create your media service account.



az ams account sp create --account-name amsaccount --resource-group **amsResourceGroup**


Make sure that you are using the right resource group name that you used when you created your Media Services account first, and use a unique named one in the same region as your account. I usually call az group create before creating a new account to put it into it's own Resource Group along with the storage account I create for it.



Example
Create a new resource group named "MyResourceGroup" in the West US region.



az group create -l westus -n 


Hope that helps!






share|improve this answer
























  • I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

    – RadarBug
    Nov 22 '18 at 9:14













  • Either way whichever resource group name I use I always get the same message

    – RadarBug
    Nov 22 '18 at 9:26











  • Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

    – johndeu
    Nov 22 '18 at 16:07











  • Try "az account show" and make sure the account you are logged into in the CLI is the right one.

    – johndeu
    Nov 22 '18 at 16:08











  • I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

    – johndeu
    Nov 22 '18 at 16:13
















0














Keep in mind that Resource Groups in Azure are things that you create, so the article was only providing an example of a Resource Group name.



The command to create the service principal expects you to use the resource group that you used to create your media service account.



az ams account sp create --account-name amsaccount --resource-group **amsResourceGroup**


Make sure that you are using the right resource group name that you used when you created your Media Services account first, and use a unique named one in the same region as your account. I usually call az group create before creating a new account to put it into it's own Resource Group along with the storage account I create for it.



Example
Create a new resource group named "MyResourceGroup" in the West US region.



az group create -l westus -n 


Hope that helps!






share|improve this answer
























  • I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

    – RadarBug
    Nov 22 '18 at 9:14













  • Either way whichever resource group name I use I always get the same message

    – RadarBug
    Nov 22 '18 at 9:26











  • Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

    – johndeu
    Nov 22 '18 at 16:07











  • Try "az account show" and make sure the account you are logged into in the CLI is the right one.

    – johndeu
    Nov 22 '18 at 16:08











  • I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

    – johndeu
    Nov 22 '18 at 16:13














0












0








0







Keep in mind that Resource Groups in Azure are things that you create, so the article was only providing an example of a Resource Group name.



The command to create the service principal expects you to use the resource group that you used to create your media service account.



az ams account sp create --account-name amsaccount --resource-group **amsResourceGroup**


Make sure that you are using the right resource group name that you used when you created your Media Services account first, and use a unique named one in the same region as your account. I usually call az group create before creating a new account to put it into it's own Resource Group along with the storage account I create for it.



Example
Create a new resource group named "MyResourceGroup" in the West US region.



az group create -l westus -n 


Hope that helps!






share|improve this answer













Keep in mind that Resource Groups in Azure are things that you create, so the article was only providing an example of a Resource Group name.



The command to create the service principal expects you to use the resource group that you used to create your media service account.



az ams account sp create --account-name amsaccount --resource-group **amsResourceGroup**


Make sure that you are using the right resource group name that you used when you created your Media Services account first, and use a unique named one in the same region as your account. I usually call az group create before creating a new account to put it into it's own Resource Group along with the storage account I create for it.



Example
Create a new resource group named "MyResourceGroup" in the West US region.



az group create -l westus -n 


Hope that helps!







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 '18 at 1:20









johndeujohndeu

1,12667




1,12667













  • I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

    – RadarBug
    Nov 22 '18 at 9:14













  • Either way whichever resource group name I use I always get the same message

    – RadarBug
    Nov 22 '18 at 9:26











  • Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

    – johndeu
    Nov 22 '18 at 16:07











  • Try "az account show" and make sure the account you are logged into in the CLI is the right one.

    – johndeu
    Nov 22 '18 at 16:08











  • I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

    – johndeu
    Nov 22 '18 at 16:13



















  • I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

    – RadarBug
    Nov 22 '18 at 9:14













  • Either way whichever resource group name I use I always get the same message

    – RadarBug
    Nov 22 '18 at 9:26











  • Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

    – johndeu
    Nov 22 '18 at 16:07











  • Try "az account show" and make sure the account you are logged into in the CLI is the right one.

    – johndeu
    Nov 22 '18 at 16:08











  • I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

    – johndeu
    Nov 22 '18 at 16:13

















I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

– RadarBug
Nov 22 '18 at 9:14







I think I may be confused as to what resource group is being talked about. If I run az group list I only see one resource group but if I login into the Azure dashboard with the same account there are 36 resource groups but not the one listed by the Azure CLI

– RadarBug
Nov 22 '18 at 9:14















Either way whichever resource group name I use I always get the same message

– RadarBug
Nov 22 '18 at 9:26





Either way whichever resource group name I use I always get the same message

– RadarBug
Nov 22 '18 at 9:26













Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

– johndeu
Nov 22 '18 at 16:07





Did you check to make sure you were logged into the right subscription via both the portal and the CLI? Otherwise, it may be a permission issue on your subscription.

– johndeu
Nov 22 '18 at 16:07













Try "az account show" and make sure the account you are logged into in the CLI is the right one.

– johndeu
Nov 22 '18 at 16:08





Try "az account show" and make sure the account you are logged into in the CLI is the right one.

– johndeu
Nov 22 '18 at 16:08













I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

– johndeu
Nov 22 '18 at 16:13





I just re-checked, and was able to run this successfully in my own MSDN account. So if you are hitting an error, you may want to pen a support ticket on your subscription. az ams account sp create -a build18 --resource-group build2018 --role Owner --years 2

– johndeu
Nov 22 '18 at 16:13




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418223%2fresourcegroupnotfound-resource-group-could-not-be-found-when-creating-a%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents