def METHOD_NAME(self, resource_group, storage_account_for_create):
    amsname = self.create_random_name(prefix='ams', length=12)
    self.kwargs.update({
        'amsname': amsname,
        'storageAccount': storage_account_for_create,
        'location': 'centralus',
    })
    self.cmd('az ams account create -n {amsname} -g {rg} --storage-account {storageAccount} -l {location} --mi-system-assigned --default-action Allow', checks=[
        self.check('name', '{amsname}'),
        self.check('location', 'Central US'),
        self.check('identity.type', 'SystemAssigned')
    ])
    self.cmd('az ams account update -n {amsname} -g {rg} --tags key=value', checks=[
        self.check('tags.key', 'value'),
    ])
    list = self.cmd('az ams account list -g {}'.format(resource_group)).get_output_in_json()
    assert len(list) > 0
    self.cmd('az ams account show -n {amsname} -g {rg}', checks=[
        self.check('name', '{amsname}'),
        self.check('resourceGroup', '{rg}')
    ])
    self.cmd('az ams account delete -n {amsname} -g {rg}')